﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Ewts.Storage
{
    public partial class CJOList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request["loadid"] != null && Request["loadid"].ToString().Trim() != "")


                    BindData(Request["loadid"].ToString().Trim());
            }
        }

        protected void BindData(string loadid)
        {
            DataLib.Model.LoadNum loadnum = new DataLib.BLL.LoadNum().GetModel(int.Parse(loadid));
            lblLoad.Text = loadnum.loadnum;
            rept.DataSource = new DataLib.BLL.Cjo().GetCJOList(loadid);
            rept.DataBind();
        }
    }
}